From: Sjoerd Simons Date: Mon, 17 Oct 2016 20:30:41 +0000 (+0200) Subject: OsreeFetcher: Treat 403 as not found X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~44^2~6 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=be9a3a7a19336ba680bc5f4a7b62add4bbfddb81;p=ostree.git OsreeFetcher: Treat 403 as not found Private Cloudfront instances return 403 for objects which don't exist rather then a 404. Change the fetcher to assume 403 is ok for download that are "optional" rather then erroring out at that step (e.g. trying to download a static delta if the remote repo doesn't have those) Closes: #531 Approved by: cgwalters --- diff --git a/src/libostree/ostree-fetcher.c b/src/libostree/ostree-fetcher.c index a4d46016..18794ce1 100644 --- a/src/libostree/ostree-fetcher.c +++ b/src/libostree/ostree-fetcher.c @@ -1057,6 +1057,7 @@ on_request_sent (GObject *object, switch (msg->status_code) { case 404: + case 403: case 410: code = G_IO_ERROR_NOT_FOUND; break;